package laravel.mvc.view;

import entity_model.Entity;
import laravel.Laravel;
import laravel.mvc.MvcComponent;
import utils.VirtualFolder;

public class View extends MvcComponent {
    public static final VirtualFolder FOLDER = Laravel.APP_FOLDER.create("views");
    static {
        Laravel.APP_FOLDER.addListener((observable, oldValue, newValue) -> FOLDER.set(newValue.createFolder("views")));
    }

    public View(Entity entity) {
        super(entity.getTitle().prefix("View"), entity);
/*        for(Title command : entity.getCommands())
            switch (command.toUpperCamel()){
                case "Create":
                    LaravelGenerator.files.addColumn(new CreateBlade(entity));
                    break;
                default:
                    LaravelGenerator.files.addColumn(new Blade(entity, command));
            }*/
    }
}
